<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>用户管理系统-注册</title>
    <script src="js/jquery-3.1.1.min.js"></script>
    <link  href="https://cdn.bootcss.com/semantic-ui/2.4.1/semantic.min.css" rel="stylesheet"/>
</head>
<body>
    <div class="ui container" style="margin-top: 180px;">
        <div style="text-align: center; margin-bottom: 20px;">
            <h1 class="header">注册</h1>
        </div>
        <div class="ui three column stackable grid login-div">
            <div class="column"></div>
            <div class="column">
                <form id="login" class="ui fluid form segment" action="/register" method="post">
                    <div class="field">
                        <label class="">用户名</label>
                        <div class="ui left icon input">
                            <input type="text" name="username" placeholder=""/>
                            <i class="user icon"></i>
                        </div>
                    </div>
                    <div class="field">
                        <label class="">密码</label>
                        <div class="ui left icon input">
                            <input type="password" name="rePassword" placeholder=""/>
                            <i class="lock icon"></i>
                        </div>
                    </div>
                    <div class="field">
                        <label class="">确认密码</label>
                        <div class="ui left icon input">
                            <input type="password" name="password" placeholder=""/>
                            <i class="lock icon"></i>
                        </div>
                    </div>
                    <div class="inline field" >
                        <label style="color: red" th:text="${error}"></label>
                    </div>
                    <div class="inline field" style="text-align: center">
                        <input type="submit" class="ui blue submit button">
                    </div>
                </form>
            </div>
        </div>
    </div>
</body>
</html>